

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit Participations</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Participations List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Participations</g:link></span>
        </div>
        <div class="body">
            <h1>Edit Participations</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${participationsInstance}">
            <div class="errors">
                <g:renderErrors bean="${participationsInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <input type="hidden" name="id" value="${participationsInstance?.id}" />
                <input type="hidden" name="version" value="${participationsInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="billingAdress">Billing Adress:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'billingAdress','errors')}">
                                    <input type="text" id="billingAdress" name="billingAdress" value="${fieldValue(bean:participationsInstance,field:'billingAdress')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lukasId">Lukas Id:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'lukasId','errors')}">
                                    <input type="text" id="lukasId" name="lukasId" value="${fieldValue(bean:participationsInstance,field:'lukasId')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="department">Department:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'department','errors')}">
                                    <input type="text" id="department" name="department" value="${fieldValue(bean:participationsInstance,field:'department')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="division">Division:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'division','errors')}">
                                    <input type="text" id="division" name="division" value="${fieldValue(bean:participationsInstance,field:'division')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="bankAccount">Bank Account:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'bankAccount','errors')}">
                                    <input type="text" id="bankAccount" name="bankAccount" value="${fieldValue(bean:participationsInstance,field:'bankAccount')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="faculty">Faculty:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'faculty','errors')}">
                                    <input type="text" id="faculty" name="faculty" value="${fieldValue(bean:participationsInstance,field:'faculty')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="participant">Participant:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'participant','errors')}">
                                    <g:select optionKey="id" from="${Employee.list()}" name="participant.id" value="${participationsInstance?.participant?.id}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="schedule">Schedule:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:participationsInstance,field:'schedule','errors')}">
                                    <g:select optionKey="id" from="${Schedule.list()}" name="schedule.id" value="${participationsInstance?.schedule?.id}" ></g:select>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
